import React from 'react'

export default class News extends React.Component {
  render() {
    return (
      <div>
         <h3>我是接收到的值 --- {this.props.val}</h3>
      </div>
    )
  }

  componentDidUpdate(prevProps) {
    console.log(22222, prevProps, this.props)
  }
}